/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package puntos;

import distancias.Distancia;

/**
 *
 * @author rivas
 */
public class Punto {
    public float x;
    public float y;
   
    public Punto(float x, float y)
    {
        this.x = x;
        this.y = y; 
    }
    float calcularDistancia(Punto p, Distancia d)
    {
        return d.calcular(this, p);
    }
 

    /**
     * @return the x
     */
    public float getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(float x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public float getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(float y) {
        this.y = y;
    }
    
}
